/* +------------------------------------------------------------------------+
   |                     Mobile Robot Programming Toolkit (MRPT)            |
   |                          https://www.mrpt.org/                         |
   |                                                                        |
   | Copyright (c) 2005-2019, Individual contributors, see AUTHORS file     |
   | See: https://www.mrpt.org/Authors - All rights reserved.               |
   | Released under BSD License. See: https://www.mrpt.org/License          |
   +------------------------------------------------------------------------+ */
#ifndef _CMT_FILE_DEF_H_2007_01_24
#define _CMT_FILE_DEF_H_2007_01_24

#include <cstdint>
#include <cstdio>

#ifndef _WIN32
#include <sys/types.h>
#endif

#ifdef _CMT_STATIC_LIB
namespace xsens
{
#endif

#ifdef _WIN32
typedef __int64 CmtFilePos;
#else
typedef off_t CmtFilePos;
#endif

#ifdef _CMT_STATIC_LIB
}  // end of xsens namespace
#endif

// setFilePos defines
#ifdef _WIN32
#define CMT_FILEPOS_BEGIN FILE_BEGIN
#define CMT_FILEPOS_CURRENT FILE_CURRENT
#define CMT_FILEPOS_END FILE_END
#else
#define CMT_FILEPOS_BEGIN SEEK_SET
#define CMT_FILEPOS_CURRENT SEEK_CUR
#define CMT_FILEPOS_END SEEK_END
#endif

#endif
